import { Effect, ImmerReducer, Reducer, Subscription } from 'umi';


export interface ProductModelState {
    marketData:[],
    addData:[]
}

export interface ProductModelType {
    namespace?: string,
    state: ProductModelState,
    effects: {
        //query就是一个函数，函数的类型Effect
        query: Effect;
        addConpon: Effect;

    },
    reducers: {
        initData: ImmerReducer<ProductModelState>;
        addConponData: ImmerReducer<ProductModelState>;
    },
    // subscriptions: { setup: Subscription };
}